package com.ssm.mapper;

import com.ssm.hj.search.MenuSearch;
import com.ssm.hj.view.MenuView;
import com.ssm.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
    //根据用户查询角色具有的菜单
    List<MenuView> queryUserById(int userId) throws Exception;
    //阿杰 查询子级菜单
    List<Menu> queryMenuChildAll(MenuSearch menuSearch) throws Exception;
    //阿杰 查询父级菜单
    List<Menu> queryMenuParentAll() throws Exception;
    //阿杰 修改菜单状态
    int updateMenuState(@Param("id") int id,@Param("state") int state) throws Exception;
}
